<table class="table table-bordered" id="address-lists-table" data-toggle="datagrid" data-options="{
    tableWidth: '100%',
    height: '100%',
    gridTitle : '快递列表',
    showToolbar: true,
    toolbarItem: 'add,del',
    local: 'remote',
    dataUrl: '/admin/company/logistics-lists',
    linenumberAll: false,
    showLinenumber: false,
    showCheckboxcol: true,
    filterThead: false,
    inlineEditMult: false,
    showEditbtnscol: '操作',
    editUrl: '/admin/company/logistics-edit?id={id}',
    editMode:{dialog:{id:'logistics-edit-dialog','title':'编辑',width:500,height:380}},
    editCallback:editCallback,
    delUrl:'/admin/company/logistics-delete',
    delPK: 'id',
    delConfirm: true,
}">
    <thead>
    <tr>
        <th data-options="{name:'id',width:50,align:'center',add:false,edit:false}">编号</th>
        <th data-options="{name:'title',align:'center'}">快递名称</th>
        <th data-options="{name:'contact_name',align:'center'}">联系人</th>
        <th data-options="{name:'contact_mobile',align:'center'}">联系电话</th>
        <th data-options="{name:'company_address',align:'center'}">公司地址</th>
        <th data-options="{name:'invoice_info',align:'center'}">开票信息</th>
        <th data-options="{align:'center',render:sendOrder}">类型设置</th>
    </tr>
    </thead>
</table>
<script type="text/javascript">
    function sendOrder(value, data)
    {
        var html  = '<button type="button" class="btn btn-info" data-toggle="dialog" data-options="';
        html  += '{id:\'ygt-bjui-dialog\',title:\'发货\',fresh:true,';
        html  += 'width:600,height:600,';
        html  += 'url:\'/admin/company/notes-edit\',data:{order_id:1}}';
        html  += '">发货</button>';
        var notes_list  = '<button type="button" class="btn btn-info" data-toggle="navtab" data-options="';
        notes_list  += '{id:\'order-send-list-navtab\',title:\''+data.title+'发货记录\',fresh:true,';
        notes_list  += 'url:\'/admin/company/notes-list\',data:{logistics_id:'+data.id+'}}';
        notes_list  += '">发货记录</button>';

        html        = html+notes_list;
        return html;
    }
</script>